﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace AL.Common
{
    public class WebBrowserHelper
    {

        // 用默认浏览器打开链接，调用示例如下：
        // WebBrowserHelper.ShellExecute(IntPtr.Zero, "open", url, "", "", 4);

        [DllImport("shell32.dll")]
        public static extern IntPtr ShellExecute(
            IntPtr hwnd,
            string lpOperation,
            string lpFile,
            string lpParameters,
            string lpDirectory,
            int a);
    }
}
